<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017-04-17
 * Time: 21:30
 */
ini_set("session.save_handler", "redis");
ini_set("session.save_path", "tcp://192.168.3.228:6379");//session默认24分钟清除(还受gc回收概率影响)

//ini_set("session.gc_maxlifetime", 180);//设置多少秒过期的session
//ini_set("session.cookie_lifetime", 180);

require_once('mysql_class.php');
$config = array(
    'db_host' => '192.168.3.228',
    'db_user' => 'root123',
    'db_pw' => '12345678',
    'db_name' => 'cms',
    'db_charset' => 'utf8',
);
